This event occurs when a new instance of a document or folder is created. It allows the extension to calculate the parent folder for the new object.
Syntax
Private Function AMUIExtension_CalculateLocation(
ByVal NewObject As Object,
ByVal DefaultLocation As String,
Abort As Boolean) As String
Name | Description |
---|---|
NewObject |
The document that will be moved to the calculated location. |
DefaultLocation |
The path where the document would be stored by default. |
Abort |
Setting this argument to True will abort the invoked operation. The AfterInvoke event will not occur. |
Return Value
The string returned from this event should be the path of the parent folder.
Remarks
This event occurs after the CalculateDisplayName event.